<template>
  <div class="page loading1">
    <div class="box">
      <div class="strip"></div>
      <div class="strip"></div>
      <div class="strip"></div>
      <div class="strip"></div>
      <div class="strip"></div>
      <div class="strip"></div>
      <div class="strip"></div>
      <div class="strip"></div>
    </div>
  </div>
</template>
<script setup>
import {} from "vue";
</script>
<style lang="scss">
.loading1 {
  .box {
    margin: 0;
    padding: 0;
    display: flex;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    justify-content: space-between;
    width: 200px;
    height: 100px;
  }
  .box .strip {
    width: 15px;
    background-color: skyblue;
    transform-origin: bottom;
    animation-name: loading1-scale;
    animation-timing-function: linear;
    animation-duration: 2s;
    animation-iteration-count: infinite;
  }
  .box .strip:nth-child(2) {
    animation-delay: .1s;
  }
  .box .strip:nth-child(3) {
    animation-delay: .2s;
  }
  .box .strip:nth-child(4) {
    animation-delay: .3s;
  }
  .box .strip:nth-child(5) {
    animation-delay: .4s;
  }
  .box .strip:nth-child(6) {
    animation-delay: .5s;
  }
  .box .strip:nth-child(7) {
    animation-delay: .6s;
  }
  .box .strip:nth-child(8) {
    animation-delay: .7s;
  }
  @keyframes loading1-scale {
    0% {
      background-color: skyblue;
      transform: scaleY(1);
    }
    50% {
      background-color: transparent;
      transform: scaleY(0);
    }
    100% {
      background-color: skyblue;
      transform: scaleY(1);
    }
  }
}
</style>